import request from '@/utils/request'

// 查询产品信息列表
export function listFundProductInfo(query) {
  return request({
    url: '/operation/fundProductInfo/list',
    method: 'get',
    params: query
  })
}

// 查询产品信息详细
export function getFundProductInfo(id) {
  return request({
    url: '/operation/fundProductInfo/' + id,
    method: 'get'
  })
}

// 保存产品信息
export function saveFundProductInfo(data) {
  return request({
    url: '/operation/fundProductInfo/save',
    method: 'post',
    data: data
  })
}

// 删除产品信息
export function delFundProductInfo(id) {
  return request({
    url: '/operation/fundProductInfo/' + id,
    method: 'delete'
  })
}

// 导出产品信息
export function exportFundProductInfo(query) {
  return request({
    url: '/operation/fundProductInfo/export',
    method: 'get',
    params: query
  })
}

//
export function getByMonitorId(monitorId) {
  return request({
    url: '/operation/fundProductInfo/getByMonitorId',
    method: 'get',
    params: { monitorId }
  })
}
// 新建报告期. 带入的牧人数据. 产品信息表
export function getDefaultData(fundId) {
  return request({
    url: '/operation/fundProductInfo/getDefaultData/' + fundId,
    method: 'get'
  })
}
